package com.bdqn.service;

import com.bdqn.mapper.SysRoleMapper;
import com.bdqn.pojo.SysRole;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * SysRoleServiceImpl
 *
 * @author LILIBO
 * @since 2022-12-31
 */
@Service("sysRoleService")
public class SysRoleServiceImpl implements SysRoleService {

    @Resource
    private SysRoleMapper sysRoleMapper;

    /**
     * 获取所有角色数据
     *
     * @return
     */
    @Override
    public List<SysRole> getAll() {
        return sysRoleMapper.getList();
    }

}
